CFLAGS := -g
targets = libdagame.a
src = $(wildcard *.c)
objs = $(patsubst %.c,%.o,$(src))

all: $(targets)
.PHONY : all

libdagame.a: $(objs)
	ar -c -r libdagame.a $(objs)

$(objs) : $(src)

clean:
	rm -f $(objs) $(targets)

